/**
 * 等号左右两侧遵循模式匹配原则就是解构
 * 
 */
//let [a,b,c] = [1,2,3];
//console.log(a,b,c);
   let{ name, age}={name:'dingyue',age:22,foo:'bar'};
   console.log(a,b,c);




   /**
    * 拓展运算符 用到右侧就是展开
    */
   let obj ={
    name:'larry',
    weight:'20kg',
    gender:'male',
   };
   let obj1 = {...obj};
   console.log(obj1);
